package com.topone.repository;

import com.topone.dataObject.TcUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * 用户信息操作相关Dao
 * Created by Administrator on 2017/11/6,0006.
 */
@Repository
public interface TcUserRepository extends JpaRepository<TcUser,String> {

    //根据用户id查询信息
    TcUser findByUserName(String userName);

    TcUser findByOpenid(String openid);

    TcUser findByHandPhone(String phone);

}
